﻿<%@ Page Title="سفارشات" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Ordering.aspx.cs" Inherits="WebDesign.Ordering"  %>
  
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
<style type="text/css">
asp:Button
{
    margin: 60 px;
}
</style>
   <link href="~/Styles/OrderingStyle.css" rel="stylesheet" type="text/css" />
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">    <asp:MultiView ID="multiviewOrdering" runat="server" ActiveViewIndex="0">
        <asp:View ID="viewWelcome" runat="server">
            <p>
                شرکت بهين طراحان کاوه :</p>
            <div class="style1">
                <asp:Label ID="lblPersonType" runat="server" Text="نوع سفارش دهنده :"></asp:Label>
                <asp:DropDownList ID="PersonTypeDropDown" runat="server">
                    <asp:ListItem Value="0">حقيقي</asp:ListItem>
                    <asp:ListItem Value="1">حقوقي</asp:ListItem>
                </asp:DropDownList>
                <br />
                <br />
                <br />
                <asp:Button ID="btnWelcomeNext" runat="server" OnClick="btnWelcomeNext_Click" Text="Next"  />
                <br />
            </div>
        </asp:View>
        <asp:View ID="viewrealPersonPropertise" runat="server">
            <div class="style1">
                <asp:Label ID="lblFirstName" runat="server" Text="نام:"></asp:Label>
                
                <asp:TextBox ID="txtFirstName" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="reqvalidtxtFirstName" runat="server" ControlToValidate="txtFirstName"
                    Text="*" ForeColor="Red"></asp:RequiredFieldValidator>
                <br />
                <br />
                <asp:Label ID="lblLastName" runat="server" Text="نام خانوادگي :"></asp:Label>
                <asp:TextBox ID="txtLastName" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="reqvalidtxtLastName" runat="server" ControlToValidate="txtLastName"
                    Text="*" ForeColor="Red"></asp:RequiredFieldValidator>
                <br />
                <br />
                <asp:Label ID="lblFatherName" runat="server" Text="نام پدر :"></asp:Label>
                <asp:TextBox ID="txtFatherName" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="reqvalidtxtFatherName" runat="server" ControlToValidate="txtfatherName"
                    Text="*" ForeColor="Red"></asp:RequiredFieldValidator>
                <br />
                <br />
                <asp:Label ID="lblIdentityNum" runat="server" Text="شماره شناسنامه :"></asp:Label>
                <asp:TextBox ID="txtIdentityNum" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="reqvalidtxtIdentityNum" runat="server" ControlToValidate="txtIdentityNum"
                    Text="*" ForeColor="Red"></asp:RequiredFieldValidator>
                <br />
                <br />
                <asp:Label ID="lblNumNationalId" runat="server" Text="کد ملي :"></asp:Label>
                <asp:TextBox ID="txtNumNationalId" runat="server"></asp:TextBox>
                <br />
                <br />
                <asp:Label ID="lblPhone" runat="server" Text=" شماره تلفن ثابت :"></asp:Label>
                <asp:TextBox ID="txtPhone" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="reqvalidtxtPhone" runat="server" ControlToValidate="txtPhone"
                    Text="*" ForeColor="Red"></asp:RequiredFieldValidator>
                <br />
                <br />
                <asp:Label ID="lblMobile" runat="server" Text=" شماره تلفن همراه :"></asp:Label>
                <asp:TextBox ID="txtMobile" runat="server"></asp:TextBox>
                <br />
                <br />
                <asp:Label ID="lblEmail" runat="server" Text="پست الکترونيکي :"></asp:Label>
                <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
                <asp:RegularExpressionValidator ID="regexpvalidtxtEmail" runat="server" ControlToValidate="txtEmail"
                    Text="پست الکترونيکي نامعتبر مي باشد " ForeColor="Red" ValidationExpression="^(\s*,?\s*[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})+\s*$"></asp:RegularExpressionValidator>
                <br />
                <br />
                <asp:Label ID="lblCustomerCity" runat="server" Text="شهر :"></asp:Label>
                <asp:TextBox ID="txtCustomerCity" runat="server"></asp:TextBox>
                <br /><br />
                <asp:Label ID="lblAddress" runat="server" Text="آدرس :"></asp:Label>
                <asp:TextBox ID="txtaddress" runat="server"></asp:TextBox>
                <br />
                <br />
                <asp:Label ID="lblReagent" runat="server" Text="معرف :"></asp:Label>
                <asp:TextBox ID="txtReagent" runat="server"></asp:TextBox>
                <br />
                <br />
                <asp:Button ID="btnRealPersonNext" runat="server" OnClick="btnRealPersonNext_Click"
                    Text="Next"  CssClass="Button"/>
                &nbsp;
                <asp:Button ID="btnRealPersonPrevious" runat="server" Text="Previous" OnClick="btnRealPersonPrevious_Click" />
                <br />
                <br />
            </div>
        </asp:View>
        <asp:View ID="viewLegalPersonPropertise" runat="server">
            <div class="style1">
                <asp:Label ID="lblFirstLegalName" runat="server" Text="نام:"></asp:Label>
               
                <asp:TextBox ID="txtFirstLegalName" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="reqvalidtxtFirstLegalName" runat="server" ControlToValidate="txtFirstLegalName"
                    Text="*" ForeColor="Red"></asp:RequiredFieldValidator>
                <br />
                <br />
                <asp:Label ID="lblLastLegalName" runat="server" Text="نام خانوادگي :"></asp:Label>
                <asp:TextBox ID="txtLastLegalName" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="requiredvalidtxtLastLegalName" runat="server" ControlToValidate="txtLastLegalName"
                    Text="*" ForeColor="Red"></asp:RequiredFieldValidator>
                <br />
                <br />
                <asp:Label ID="lblCompanyPhone" runat="server" Text="شماره تلفن  :"></asp:Label>
                <asp:TextBox ID="txtCompanyPhone" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="reqvalid" runat="server" ControlToValidate="txtCompanyPhone"
                    Text="*" ForeColor="Red"></asp:RequiredFieldValidator>
                <br />
                <br />
                <asp:Label ID="lblCompanyEmail" runat="server" Text="پست الکترونيکي :"></asp:Label>
                <asp:TextBox ID="txtCompanyEmail" runat="server"></asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtCompanyEmail"
                    Text="پست الکترونيکي نامعتبر مي باشد " ForeColor="Red" ValidationExpression="^(\s*,?\s*[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})+\s*$"></asp:RegularExpressionValidator>
                <br />
                <br />
                <asp:Label ID="lblCompanyName" runat="server" Text="نام شرکت :"></asp:Label>
                <asp:TextBox ID="txtCompanyName" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtCompanyName"
                    Text="*" ForeColor="Red"></asp:RequiredFieldValidator>
                <br />
                <br />
                 <asp:Label ID="lblCompanyActivity" runat="server" Text="زمینه فعالیت :"></asp:Label>
                <asp:TextBox ID="txtCompanyActivity" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="reqValidCompanyActivity" runat="server" ControlToValidate="txtCompanyActivity"
                    Text="*" ForeColor="Red"></asp:RequiredFieldValidator>
                <br />
                <br />
                <asp:Label ID="lblCompanyAddress" runat="server" Text="آدرس :"></asp:Label>
                <asp:TextBox ID="txtCompanyAddress" runat="server"></asp:TextBox>
                <br />
                <br />
                <asp:Label ID="lblCompanyReagent" runat="server" Text="معرف :"></asp:Label>
                <asp:TextBox ID="txtCompanyReagen" runat="server"></asp:TextBox>
                <br />
                <br />
                <asp:Button ID="btnLegPropertiseNext" runat="server" OnClick="btnLegPropertiseNext_Click"
                    Text="Next"  />
                &nbsp;
                <asp:Button ID="btnLegPropertisePrevious" runat="server" Text="Previous" OnClick="btnLegPropertisePrevious_Click" />
                <br />
                <br />
            </div>
        </asp:View>
        <asp:View ID="viewOrder" runat="server">
            <asp:Label ID="lblOrderType" runat="server" Text="نوع سفارش :"> </asp:Label>
            <asp:DropDownList ID="DropDownOrderType" runat="server" DataSourceID="OrdertypeDataSource"
                DataTextField="TypeName" DataValueField="TypeId">
            </asp:DropDownList>
            <asp:SqlDataSource ID="OrdertypeDataSource" runat="server" ConnectionString="Data Source=.;Initial Catalog=KaveComp;Integrated Security=True"
                ProviderName="System.Data.SqlClient" SelectCommand="SELECT [TypeId], [TypeName] FROM [OrderTypetbl]">
            </asp:SqlDataSource>
            <br />
            <br />
            <asp:Label ID="lblOrderExp" runat="server" Text="شرح سفارش :"></asp:Label>
            <asp:TextBox
                ID="txtOrderExp" runat="server" Height="123px" OnTextChanged="txtOrderExp_TextChanged"
                Width="207px" TextMode="MultiLine"></asp:TextBox>
            <asp:RequiredFieldValidator ID="reqvalidtxtOrderExp" runat="server" ControlToValidate="txtOrderExp"
                Text="*" ForeColor="Red"></asp:RequiredFieldValidator>
            <asp:Label ID="lblOrderDataFinal" runat="server" Text="تاريخ نهايي انجام سفارش :"></asp:Label><asp:TextBox
                ID="txtOrderDataFinal" runat="server"></asp:TextBox>
            <br />
            <br />
            <br />
            <asp:Button ID="btnFinish" runat="server" Text="Finish" OnClick="btnFinish_Click" />
            <asp:Button ID="btnOrderPrevious" runat="server" Text="Previous" OnClick="btnOrderPrevious_Click" />
        </asp:View>
    </asp:MultiView>
</asp:Content>
